﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Xml.Linq;
using System.Linq.Expressions;
using System.Security.Policy;

namespace Columbus.Crd.UpdateService
{
    /// <summary>
    /// Gives access to update information
    /// </summary>
    [WebService(Namespace = "http://studiokrasno.ru/skn")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // [System.Web.Script.Services.ScriptService]
    public class Update : System.Web.Services.WebService
    {

        [WebMethod]
        public String GetLatest()
        {
            return XElement.Load(HttpContext.Current.Server.MapPath("~/Updates.xml")).Element("Update").ToString();
        }
    }
}